package tech.aister.day01.homework;

public class Screen {

    private String brand;
    private int size;
    private String type;

    public Screen(){

    }

    public Screen(String brand, int size, String type){
        this.brand = brand;
        //显示器尺寸 (如 17寸\23\19\25)
        if (size==17||size==23||size==19||size==25){
            this.size = size;
            return;
        }
            this.size = 17;
        this.type = type;
    }
    public String getBrand(){return brand;}
    public int getSize(){return size;}
    public String getType(){return type;}

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setSize(int size) {
        this.size = size;
    }

    @Override
    public String toString() {
        return "video{" +
                "brand='" + brand + '\'' +
                ", size=" + size +
                ", type='" + type + '\'' +
                '}';
    }
}
